-- LuaScript Defines
-- Put together by Derex & SinnerG
printf("LuaScript: Loading defines...\n")
-- OpCodes
-- OpCodes = {
SSG_NULL_ACTION                                 = 0
SMSG_BOOTME                                     = 1
SMSG_DBLOOKUP                                   = 2
SMSG_DBLOOKUP                                   = 3
SMSG_QUERY_OBJECT_POSITION                      = 4
SMSG_QUERY_OBJECT_POSITION                      = 5
SMSG_QUERY_OBJECT_ROTATION                      = 6
SMSG_QUERY_OBJECT_ROTATION                      = 7
SMSG_WORLD_TELEPORT                             = 8
SMSG_TELEPORT_TO_UNIT                           = 9
SMSG_ZONE_MAP                                   = 10
SMSG_ZONE_MAP                                   = 11
SMSG_DEBUG_CHANGECELLZONE                       = 12
SMSG_EMBLAZON_TABARD_OBSOLETE                   = 13
SMSG_UNEMBLAZON_TABARD_OBSOLETE                 = 14
SMSG_RECHARGE                                   = 15
SMSG_LEARN_SPELL                                = 16
SMSG_CREATEMONSTER                              = 17
SMSG_DESTROYMONSTER                             = 18
SMSG_CREATEITEM                                 = 19
SMSG_CREATEGAMEOBJECT                           = 20
-- CMSG_MAKEMONSTERATTACKME                        = 21 -- OBSOLETE
SMSG_MAKEMONSTERATTACKME_OBSOLETE               = 21
SMSG_MAKEMONSTERATTACKGUID                      = 22
SMSG_ENABLEDEBUGCOMBATLOGGING_OBSOLETE          = 23
SMSG_FORCEACTION                                = 24
SMSG_FORCEACTIONONOTHER                         = 25
SMSG_FORCEACTIONSHOW                            = 26
SMSG_FORCEACTIONSHOW                            = 27
SMSG_ATTACKERSTATEUPDATEDEBUGINFO_OBSOLETE      = 28
SMSG_DEBUGINFOSPELL_OBSOLETE                    = 29
SMSG_DEBUGINFOSPELLMISS_OBSOLETE                = 30
SMSG_DEBUG_PLAYER_RANGE_OBSOLETE                = 31
SMSG_UNDRESSPLAYER                              = 32
SMSG_BEASTMASTER                                = 33
SMSG_GODMODE                                    = 34
SMSG_GODMODE                                    = 35
SMSG_CHEAT_SETMONEY                             = 36
SMSG_LEVEL_CHEAT                                = 37
SMSG_PET_LEVEL_CHEAT                            = 38
SMSG_LEVELUP_CHEAT_OBSOLETE                     = 39
SMSG_COOLDOWN_CHEAT                             = 40
SMSG_USE_SKILL_CHEAT                            = 41
SMSG_FLAG_QUEST                                 = 42
SMSG_FLAG_QUEST_FINISH                          = 43
SMSG_CLEAR_QUEST                                = 44
SMSG_SEND_EVENT                                 = 45
SMSG_DEBUG_AISTATE                              = 46
SMSG_DEBUG_AISTATE                              = 47
SMSG_DISABLE_PVP_CHEAT                          = 48
SMSG_ADVANCE_SPAWN_TIME                         = 49
SMSG_PVP_PORT_OBSOLETE                          = 50
SMSG_AUTH_SRP6_BEGIN                            = 51
SMSG_AUTH_SRP6_PROOF                            = 52
SMSG_AUTH_SRP6_RECODE                           = 53
SMSG_CHAR_CREATE                                = 54
SMSG_CHAR_ENUM                                  = 55
SMSG_CHAR_DELETE                                = 56
SMSG_AUTH_SRP6_RESPONSE                         = 57
SMSG_CHAR_CREATE                                = 58
SMSG_CHAR_ENUM                                  = 59
SMSG_CHAR_DELETE                                = 60
SMSG_PLAYER_LOGIN                               = 61
SMSG_NEW_WORLD                                  = 62
SMSG_TRANSFER_PENDING                           = 63
SMSG_TRANSFER_ABORTED                           = 64
SMSG_CHARACTER_LOGIN_FAILED                     = 65
SMSG_LOGIN_SETTIMESPEED                         = 66
SMSG_GAMETIME_UPDATE                            = 67
SMSG_GAMETIME_SET                               = 68
SMSG_GAMETIME_SET                               = 69
SMSG_GAMESPEED_SET                              = 70
SMSG_GAMESPEED_SET                              = 71
SMSG_SERVERTIME                                 = 72
SMSG_SERVERTIME                                 = 73
SMSG_PLAYER_LOGOUT                              = 74
SMSG_LOGOUT_REQUEST                             = 75
SMSG_LOGOUT_RESPONSE                            = 76
SMSG_LOGOUT_COMPLETE                            = 77
SMSG_LOGOUT_CANCEL                              = 78
SMSG_LOGOUT_CANCEL_ACK                          = 79
SMSG_NAME_QUERY                                 = 80
SMSG_NAME_QUERY_RESPONSE                        = 81
SMSG_PET_NAME_QUERY                             = 82
SMSG_PET_NAME_QUERY_RESPONSE                    = 83
SMSG_GUILD_QUERY                                = 84
SMSG_GUILD_QUERY_RESPONSE                       = 85
SMSG_ITEM_QUERY_SINGLE                          = 86
SMSG_ITEM_QUERY_MULTIPLE                        = 87
SMSG_ITEM_QUERY_SINGLE_RESPONSE                 = 88
SMSG_ITEM_QUERY_MULTIPLE_RESPONSE               = 89
SMSG_PAGE_TEXT_QUERY                            = 90
SMSG_PAGE_TEXT_QUERY_RESPONSE                   = 91
SMSG_QUEST_QUERY                                = 92
SMSG_QUEST_QUERY_RESPONSE                       = 93
SMSG_GAMEOBJECT_QUERY                           = 94
SMSG_GAMEOBJECT_QUERY_RESPONSE                  = 95
SMSG_CREATURE_QUERY                             = 96
SMSG_CREATURE_QUERY_RESPONSE                    = 97
SMSG_WHO                                        = 98
SMSG_WHO                                        = 99
SMSG_WHOIS                                      = 100
SMSG_WHOIS                                      = 101
SMSG_FRIEND_LIST                                = 102
SMSG_FRIEND_LIST                                = 103
SMSG_FRIEND_STATUS                              = 104
SMSG_ADD_FRIEND                                 = 105
SMSG_DEL_FRIEND                                 = 106
SMSG_IGNORE_LIST                                = 107
SMSG_ADD_IGNORE                                 = 108
SMSG_DEL_IGNORE                                 = 109
SMSG_GROUP_INVITE                               = 110
SMSG_GROUP_INVITE                               = 111
SMSG_GROUP_CANCEL                               = 112
SMSG_GROUP_CANCEL                               = 113
SMSG_GROUP_ACCEPT                               = 114
SMSG_GROUP_DECLINE                              = 115
SMSG_GROUP_DECLINE                              = 116
SMSG_GROUP_UNINVITE                             = 117
SMSG_GROUP_UNINVITE_GUID                        = 118
SMSG_GROUP_UNINVITE                             = 119
SMSG_GROUP_SET_LEADER                           = 120
SMSG_GROUP_SET_LEADER                           = 121
SMSG_LOOT_METHOD                                = 122
SMSG_GROUP_DISBAND                              = 123
SMSG_GROUP_DESTROYED                            = 124
SMSG_GROUP_LIST                                 = 125
SMSG_PARTY_MEMBER_STATS                         = 126
SMSG_PARTY_COMMAND_RESULT                       = 127
UMSG_UPDATE_GROUP_MEMBERS                       = 128
SMSG_GUILD_CREATE                               = 129
SMSG_GUILD_INVITE                               = 130
SMSG_GUILD_INVITE                               = 131
SMSG_GUILD_ACCEPT                               = 132
SMSG_GUILD_DECLINE                              = 133
SMSG_GUILD_DECLINE                              = 134
SMSG_GUILD_INFO                                 = 135
SMSG_GUILD_INFO                                 = 136
SMSG_GUILD_ROSTER                               = 137
SMSG_GUILD_ROSTER                               = 138
SMSG_GUILD_PROMOTE                              = 139
SMSG_GUILD_DEMOTE                               = 140
SMSG_GUILD_LEAVE                                = 141
SMSG_GUILD_REMOVE                               = 142
SMSG_GUILD_DISBAND                              = 143
SMSG_GUILD_LEADER                               = 144
SMSG_GUILD_MOTD                                 = 145
SMSG_GUILD_EVENT                                = 146
SMSG_GUILD_COMMAND_RESULT                       = 147
UMSG_UPDATE_GUILD                               = 148
SMSG_MESSAGECHAT                                = 149
SMSG_MESSAGECHAT                                = 150
SMSG_JOIN_CHANNEL                               = 151
SMSG_LEAVE_CHANNEL                              = 152
SMSG_CHANNEL_NOTIFY                             = 153
SMSG_CHANNEL_LIST                               = 154
SMSG_CHANNEL_LIST                               = 155
SMSG_CHANNEL_PASSWORD                           = 156
SMSG_CHANNEL_SET_OWNER                          = 157
SMSG_CHANNEL_OWNER                              = 158
SMSG_CHANNEL_MODERATOR                          = 159
SMSG_CHANNEL_UNMODERATOR                        = 160
SMSG_CHANNEL_MUTE                               = 161
SMSG_CHANNEL_UNMUTE                             = 162
SMSG_CHANNEL_INVITE                             = 163
SMSG_CHANNEL_KICK                               = 164
SMSG_CHANNEL_BAN                                = 165
SMSG_CHANNEL_UNBAN                              = 166
SMSG_CHANNEL_ANNOUNCEMENTS                      = 167
SMSG_CHANNEL_MODERATE                           = 168
SMSG_UPDATE_OBJECT                              = 169
SMSG_DESTROY_OBJECT                             = 170
SMSG_USE_ITEM                                   = 171
SMSG_OPEN_ITEM                                  = 172
SMSG_READ_ITEM                                  = 173
SMSG_READ_ITEM_OK                               = 174
SMSG_READ_ITEM_FAILED                           = 175
SMSG_ITEM_COOLDOWN                              = 176
SMSG_GAMEOBJ_USE                                = 177
SMSG_GAMEOBJ_CHAIR_USE_OBSOLETE                 = 178
SMSG_GAMEOBJECT_CUSTOM_ANIM                     = 179
SMSG_AREATRIGGER                                = 180
SSG_MOVE_START_FORWARD                          = 181
SSG_MOVE_START_BACKWARD                         = 182
SSG_MOVE_STOP                                   = 183
SSG_MOVE_START_STRAFE_LEFT                      = 184
SSG_MOVE_START_STRAFE_RIGHT                     = 185
SSG_MOVE_STOP_STRAFE                            = 186
SSG_MOVE_JUMP                                   = 187
SSG_MOVE_START_TURN_LEFT                        = 188
SSG_MOVE_START_TURN_RIGHT                       = 189
SSG_MOVE_STOP_TURN                              = 190
SSG_MOVE_START_PITCH_UP                         = 191
SSG_MOVE_START_PITCH_DOWN                       = 192
SSG_MOVE_STOP_PITCH                             = 193
SSG_MOVE_SET_RUN_MODE                           = 194
SSG_MOVE_SET_WALK_MODE                          = 195
SSG_MOVE_TOGGLE_LOGGING                         = 196
SSG_MOVE_TELEPORT                               = 197
SSG_MOVE_TELEPORT_CHEAT                         = 198
SSG_MOVE_TELEPORT_ACK                           = 199
SSG_MOVE_TOGGLE_FALL_LOGGING                    = 200
SSG_MOVE_FALL_LAND                              = 201
SSG_MOVE_START_SWIM                             = 202
SSG_MOVE_STOP_SWIM                              = 203
SSG_MOVE_SET_RUN_SPEED_CHEAT                    = 204
SSG_MOVE_SET_RUN_SPEED                          = 205
SSG_MOVE_SET_RUN_BACK_SPEED_CHEAT               = 206
SSG_MOVE_SET_RUN_BACK_SPEED                     = 207
SSG_MOVE_SET_WALK_SPEED_CHEAT                   = 208
SSG_MOVE_SET_WALK_SPEED                         = 209
SSG_MOVE_SET_SWIM_SPEED_CHEAT                   = 210
SSG_MOVE_SET_SWIM_SPEED                         = 211
SSG_MOVE_SET_SWIM_BACK_SPEED_CHEAT              = 212
SSG_MOVE_SET_SWIM_BACK_SPEED                    = 213
SSG_MOVE_SET_ALL_SPEED_CHEAT                    = 214
SSG_MOVE_SET_TURN_RATE_CHEAT                    = 215
SSG_MOVE_SET_TURN_RATE                          = 216
SSG_MOVE_TOGGLE_COLLISION_CHEAT                 = 217
SSG_MOVE_SET_FACING                             = 218
SSG_MOVE_SET_PITCH                              = 219
SSG_MOVE_WORLDPORT_ACK                          = 220
SMSG_MONSTER_MOVE                               = 221
SMSG_MOVE_WATER_WALK                            = 222
SMSG_MOVE_LAND_WALK                             = 223
SSG_MOVE_SET_RAW_POSITION_ACK                   = 224
SMSG_MOVE_SET_RAW_POSITION                      = 225
SMSG_FORCE_RUN_SPEED_CHANGE                     = 226
SMSG_FORCE_RUN_SPEED_CHANGE_ACK                 = 227
SMSG_FORCE_RUN_BACK_SPEED_CHANGE                = 228
SMSG_FORCE_RUN_BACK_SPEED_CHANGE_ACK            = 229
SMSG_FORCE_SWIM_SPEED_CHANGE                    = 230
SMSG_FORCE_SWIM_SPEED_CHANGE_ACK                = 231
SMSG_FORCE_MOVE_ROOT                            = 232
SMSG_FORCE_MOVE_ROOT_ACK                        = 233
SMSG_FORCE_MOVE_UNROOT                          = 234
SMSG_FORCE_MOVE_UNROOT_ACK                      = 235
SSG_MOVE_ROOT                                   = 236
SSG_MOVE_UNROOT                                 = 237
SSG_MOVE_HEARTBEAT                              = 238
SMSG_MOVE_KNOCK_BACK                            = 239
SMSG_MOVE_KNOCK_BACK_ACK                        = 240
SSG_MOVE_KNOCK_BACK                             = 241
SMSG_MOVE_FEATHER_FALL                          = 242
SMSG_MOVE_NORMAL_FALL                           = 243
SMSG_MOVE_SET_HOVER                             = 244
SMSG_MOVE_UNSET_HOVER                           = 245
SMSG_MOVE_HOVER_ACK                             = 246
SSG_MOVE_HOVER                                  = 247
SMSG_TRIGGER_CINEMATIC_CHEAT                    = 248
SMSG_OPENING_CINEMATIC                          = 249
SMSG_TRIGGER_CINEMATIC                          = 250
SMSG_NEXT_CINEMATIC_CAMERA                      = 251
SMSG_COMPLETE_CINEMATIC                         = 252
SMSG_TUTORIAL_FLAGS                             = 253
SMSG_TUTORIAL_FLAG                              = 254
SMSG_TUTORIAL_CLEAR                             = 255
SMSG_TUTORIAL_RESET                             = 256
SMSG_STANDSTATECHANGE                           = 257
SMSG_EMOTE                                      = 258
SMSG_EMOTE                                      = 259
SMSG_TEXT_EMOTE                                 = 260
SMSG_TEXT_EMOTE                                 = 261
SMSG_AUTOEQUIP_GROUND_ITEM                      = 262
SMSG_AUTOSTORE_GROUND_ITEM                      = 263
SMSG_AUTOSTORE_LOOT_ITEM                        = 264
SMSG_STORE_LOOT_IN_SLOT                         = 265
SMSG_AUTOEQUIP_ITEM                             = 266
SMSG_AUTOSTORE_BAG_ITEM                         = 267
SMSG_SWAP_ITEM                                  = 268
SMSG_SWAP_INV_ITEM                              = 269
SMSG_SPLIT_ITEM                                 = 270
SMSG_PICKUP_ITEM                                = 271
SMSG_DROP_ITEM                                  = 272
SMSG_DESTROYITEM                                = 273
SMSG_INVENTORY_CHANGE_FAILURE                   = 274
SMSG_OPEN_CONTAINER                             = 275
SMSG_INSPECT                                    = 276
SMSG_INSPECT                                    = 277
SMSG_INITIATE_TRADE                             = 278
SMSG_BEGIN_TRADE                                = 279
SMSG_BUSY_TRADE                                 = 280
SMSG_IGNORE_TRADE                               = 281
SMSG_ACCEPT_TRADE                               = 282
SMSG_UNACCEPT_TRADE                             = 283
SMSG_CANCEL_TRADE                               = 284
SMSG_SET_TRADE_ITEM                             = 285
SMSG_CLEAR_TRADE_ITEM                           = 286
SMSG_SET_TRADE_GOLD                             = 287
SMSG_TRADE_STATUS                               = 288
SMSG_TRADE_STATUS_EXTENDED                      = 289
SMSG_INITIALIZE_FACTIONS                        = 290
SMSG_SET_FACTION_VISIBLE                        = 291
SMSG_SET_FACTION_STANDING                       = 292
SMSG_SET_FACTION_ATWAR                          = 293
SMSG_SET_FACTION_CHEAT                          = 294
SMSG_SET_PROFICIENCY                            = 295
SMSG_SET_ACTION_BUTTON                          = 296
SMSG_ACTION_BUTTONS                             = 297
SMSG_INITIAL_SPELLS                             = 298
SMSG_LEARNED_SPELL                              = 299
SMSG_SUPERCEDED_SPELL                           = 300
SMSG_NEW_SPELL_SLOT                             = 301
SMSG_CAST_SPELL                                 = 302
SMSG_CANCEL_CAST                                = 303
SMSG_CAST_RESULT                                = 304
SMSG_SPELL_START                                = 305
SMSG_SPELL_GO                                   = 306
SMSG_SPELL_FAILURE                              = 307
SMSG_SPELL_COOLDOWN                             = 308
SMSG_COOLDOWN_EVENT                             = 309
SMSG_CANCEL_AURA                                = 310
SMSG_UPDATE_AURA_DURATION                       = 311
SMSG_PET_CAST_FAILED                            = 312
SSG_CHANNEL_START                               = 313
SSG_CHANNEL_UPDATE                              = 314
SMSG_CANCEL_CHANNELLING                         = 315
SMSG_AI_REACTION                                = 316
SMSG_SET_SELECTION                              = 317
-- CMSG_SET_TARGET                                = 318 -- OBSOLETE
SMSG_SET_TARGET_OBSOLETE                        = 318
SMSG_UNUSED                                     = 319
SMSG_UNUSED2                                    = 320
SMSG_ATTACKSWING                                = 321
SMSG_ATTACKSTOP                                 = 322
SMSG_ATTACKSTART                                = 323
SMSG_ATTACKSTOP                                 = 324
SMSG_ATTACKSWING_NOTINRANGE                     = 325
SMSG_ATTACKSWING_BADFACING                      = 326
SMSG_ATTACKSWING_NOTSTANDING                    = 327
SMSG_ATTACKSWING_DEADTARGET                     = 328
SMSG_ATTACKSWING_CANT_ATTACK                    = 329
SMSG_ATTACKERSTATEUPDATE                        = 330
SMSG_VICTIMSTATEUPDATE_OBSOLETE                 = 331
SMSG_DAMAGE_DONE_OBSOLETE                       = 332
SMSG_DAMAGE_TAKEN_OBSOLETE                      = 333
SMSG_CANCEL_COMBAT                              = 334
SMSG_PLAYER_COMBAT_XP_GAIN_OBSOLETE             = 335
SMSG_HEALSPELL_ON_PLAYER_OBSOLETE               = 336
SMSG_HEALSPELL_ON_PLAYERS_PET_OBSOLETE          = 337
SMSG_SHEATHE_OBSOLETE                           = 338
SMSG_SAVE_PLAYER                                = 339
SMSG_SETDEATHBINDPOINT                          = 340
SMSG_BINDPOINTUPDATE                            = 341
SMSG_GETDEATHBINDZONE                           = 342
SMSG_BINDZONEREPLY                              = 343
SMSG_PLAYERBOUND                                = 344
SMSG_DEATH_NOTIFY_OBSOLETE                      = 345
SMSG_REPOP_REQUEST                              = 346
SMSG_RESURRECT_REQUEST                          = 347
SMSG_RESURRECT_RESPONSE                         = 348
SMSG_LOOT                                       = 349
SMSG_LOOT_MONEY                                 = 350
SMSG_LOOT_RELEASE                               = 351
SMSG_LOOT_RESPONSE                              = 352
SMSG_LOOT_RELEASE_RESPONSE                      = 353
SMSG_LOOT_REMOVED                               = 354
SMSG_LOOT_MONEY_NOTIFY                          = 355
SMSG_LOOT_ITEM_NOTIFY                           = 356
SMSG_LOOT_CLEAR_MONEY                           = 357
SMSG_ITEM_PUSH_RESULT                           = 358
SMSG_DUEL_REQUESTED                             = 359
SMSG_DUEL_OUTOFBOUNDS                           = 360
SMSG_DUEL_INBOUNDS                              = 361
SMSG_DUEL_COMPLETE                              = 362
SMSG_DUEL_WINNER                                = 363
SMSG_DUEL_ACCEPTED                              = 364
SMSG_DUEL_CANCELLED                             = 365
SMSG_MOUNTRESULT                                = 366
SMSG_DISMOUNTRESULT                             = 367
SMSG_PUREMOUNT_CANCELLED_OBSOLETE               = 368
SMSG_MOUNTSPECIAL_ANIM                          = 369
SMSG_MOUNTSPECIAL_ANIM                          = 370
SMSG_PET_TAME_FAILURE                           = 371
SMSG_PET_SET_ACTION                             = 372
SMSG_PET_ACTION                                 = 373
SMSG_PET_ABANDON                                = 374
SMSG_PET_RENAME                                 = 375
SMSG_PET_NAME_INVALID                           = 376
SMSG_PET_SPELLS                                 = 377
-- CMSG_PET_CAST_SPELL_OBSOLETE                    = 378 -- OBSOLETE
SMSG_PET_MODE                                   = 378
SMSG_GOSSIP_HELLO                               = 379
SMSG_GOSSIP_SELECT_OPTION                       = 380
SMSG_GOSSIP_MESSAGE                             = 381
SMSG_GOSSIP_COMPLETE                            = 382
SMSG_NPC_TEXT_QUERY                             = 383
SMSG_NPC_TEXT_UPDATE                            = 384
SMSG_NPC_WONT_TALK                              = 385
SMSG_QUESTGIVER_STATUS_QUERY                    = 386
SMSG_QUESTGIVER_STATUS                          = 387
SMSG_QUESTGIVER_HELLO                           = 388
SMSG_QUESTGIVER_QUEST_LIST                      = 389
SMSG_QUESTGIVER_QUERY_QUEST                     = 390
SMSG_QUESTGIVER_QUEST_AUTOLAUNCH                = 391
SMSG_QUESTGIVER_QUEST_DETAILS                   = 392
SMSG_QUESTGIVER_ACCEPT_QUEST                    = 393
SMSG_QUESTGIVER_COMPLETE_QUEST                  = 394
SMSG_QUESTGIVER_REQUEST_ITEMS                   = 395
SMSG_QUESTGIVER_REQUEST_REWARD                  = 396
SMSG_QUESTGIVER_OFFER_REWARD                    = 397
SMSG_QUESTGIVER_CHOOSE_REWARD                   = 398
SMSG_QUESTGIVER_QUEST_INVALID                   = 399
SMSG_QUESTGIVER_CANCEL                          = 400
SMSG_QUESTGIVER_QUEST_COMPLETE                  = 401
SMSG_QUESTGIVER_QUEST_FAILED                    = 402
SMSG_QUESTLOG_SWAP_QUEST                        = 403
SMSG_QUESTLOG_REMOVE_QUEST                      = 404
SMSG_QUESTLOG_FULL                              = 405
SMSG_QUESTUPDATE_FAILED                         = 406
SMSG_QUESTUPDATE_FAILEDTIMER                    = 407
SMSG_QUESTUPDATE_COMPLETE                       = 408
SMSG_QUESTUPDATE_ADD_KILL                       = 409
SMSG_QUESTUPDATE_ADD_ITEM                       = 410
SMSG_QUEST_CONFIRM_ACCEPT                       = 411
SMSG_QUEST_CONFIRM_ACCEPT                       = 412
SMSG_PUSHQUESTTOPARTY                           = 413
SMSG_LIST_INVENTORY                             = 414
SMSG_LIST_INVENTORY                             = 415
SMSG_SELL_ITEM                                  = 416
SMSG_SELL_ITEM                                  = 417
SMSG_BUY_ITEM                                   = 418
SMSG_BUY_ITEM_IN_SLOT                           = 419
SMSG_BUY_ITEM                                   = 420
SMSG_BUY_FAILED                                 = 421
SMSG_TAXICLEARALLNODES                          = 422
SMSG_TAXIENABLEALLNODES                         = 423
SMSG_TAXISHOWNODES                              = 424
SMSG_SHOWTAXINODES                              = 425
SMSG_TAXINODE_STATUS_QUERY                      = 426
SMSG_TAXINODE_STATUS                            = 427
SMSG_TAXIQUERYAVAILABLENODES                    = 428
SMSG_ACTIVATETAXI                               = 429
SMSG_ACTIVATETAXIREPLY                          = 430
SMSG_NEW_TAXI_PATH                              = 431
SMSG_TRAINER_LIST                               = 432
SMSG_TRAINER_LIST                               = 433
SMSG_TRAINER_BUY_SPELL                          = 434
SMSG_TRAINER_BUY_SUCCEEDED                      = 435
SMSG_TRAINER_BUY_FAILED                         = 436
SMSG_BINDER_ACTIVATE                            = 437
SMSG_PLAYERBINDERROR                            = 438
SMSG_BANKER_ACTIVATE                            = 439
SMSG_SHOW_BANK                                  = 440
SMSG_BUY_BANK_SLOT                              = 441
SMSG_BUY_BANK_SLOT_RESULT                       = 442
SMSG_PETITION_SHOWLIST                          = 443
SMSG_PETITION_SHOWLIST                          = 444
SMSG_PETITION_BUY                               = 445
SMSG_PETITION_SHOW_SIGNATURES                   = 446
SMSG_PETITION_SHOW_SIGNATURES                   = 447
SMSG_PETITION_SIGN                              = 448
SMSG_PETITION_SIGN_RESULTS                      = 449
SSG_PETITION_DECLINE                            = 450
SMSG_OFFER_PETITION                             = 451
SMSG_TURN_IN_PETITION                           = 452
SMSG_TURN_IN_PETITION_RESULTS                   = 453
SMSG_PETITION_QUERY                             = 454
SMSG_PETITION_QUERY_RESPONSE                    = 455
SMSG_FISH_NOT_HOOKED                            = 456
SMSG_FISH_ESCAPED                               = 457
SMSG_BUG                                        = 458
SMSG_NOTIFICATION                               = 459
SMSG_PLAYED_TIME                                = 460
SMSG_PLAYED_TIME                                = 461
SMSG_QUERY_TIME                                 = 462
SMSG_QUERY_TIME_RESPONSE                        = 463
SMSG_LOG_XPGAIN                                 = 464
SSG_SPLIT_MONEY                                 = 465
SMSG_RECLAIM_CORPSE                             = 466
SMSG_WRAP_ITEM                                  = 467
SMSG_LEVELUP_INFO                               = 468
SSG_MINIMAP_PING                                = 469
SMSG_RESISTLOG                                  = 470
SMSG_ENCHANTMENTLOG                             = 471
SMSG_SET_SKILL_CHEAT                            = 472
SMSG_START_MIRROR_TIMER                         = 473
SMSG_PAUSE_MIRROR_TIMER                         = 474
SMSG_STOP_MIRROR_TIMER                          = 475
SMSG_PING                                       = 476
SMSG_PONG                                       = 477
SMSG_CLEAR_COOLDOWN                             = 478
SMSG_GAMEOBJECT_PAGETEXT                        = 479
SMSG_SETSHEATHED                                = 480
SMSG_COOLDOWN_CHEAT                             = 481
SMSG_SPELL_DELAYED                              = 482
SMSG_PLAYER_MACRO_OBSOLETE                      = 483
SMSG_PLAYER_MACRO_OBSOLETE                      = 484
SMSG_GHOST                                      = 485
SMSG_GM_INVIS                                   = 486
-- CMSG_SCREENSHOT                                = 487 -- OBSOLETE
SMSG_INVALID_PROMOTION_CODE                     = 487
SSG_GM_BIND_OTHER                               = 488
SSG_GM_SUMMON                                   = 489
SMSG_ITEM_TIME_UPDATE                           = 490
SMSG_ITEM_ENCHANT_TIME_UPDATE                   = 491
SMSG_AUTH_CHALLENGE                             = 492
SMSG_AUTH_SESSION                               = 493
SMSG_AUTH_RESPONSE                              = 494
SSG_GM_SHOWLABEL                                = 495
-- MSG_ADD_DYNAMIC_TARGET                        = 496 -- OBSOLETE
SSG_ADD_DYNAMIC_TARGET_OBSOLETE                 = 496
SSG_SAVE_GUILD_EMBLEM                           = 497
SSG_TABARDVENDOR_ACTIVATE                       = 498
SMSG_PLAY_SPELL_VISUAL                          = 499
SMSG_ZONEUPDATE                                 = 500
SMSG_PARTYKILLLOG                               = 501
SMSG_COMPRESSED_UPDATE_OBJECT                   = 502
SMSG_OBSOLETE                                   = 503
SMSG_EXPLORATION_EXPERIENCE                     = 504
SMSG_GM_SET_SECURITY_GROUP                      = 505
SMSG_GM_NUKE                                    = 506
SSG_RANDOM_ROLL                                 = 507
SMSG_ENVIRONMENTALDAMAGELOG                     = 508
SMSG_RWHOIS                                     = 509
SMSG_RWHOIS                                     = 510
SSG_LOOKING_FOR_GROUP                           = 511
SMSG_SET_LOOKING_FOR_GROUP                      = 512
SMSG_UNLEARN_SPELL                              = 513
SMSG_UNLEARN_SKILL                              = 514
SMSG_REMOVED_SPELL                              = 515
SMSG_DECHARGE                                   = 516
SMSG_GMTICKET_CREATE                            = 517
SMSG_GMTICKET_CREATE                            = 518
SMSG_GMTICKET_UPDATETEXT                        = 519
SMSG_GMTICKET_UPDATETEXT                        = 520
SMSG_ACCOUNT_DATA_MD5                           = 521
SMSG_REQUEST_ACCOUNT_DATA                       = 522
SMSG_UPDATE_ACCOUNT_DATA                        = 523
SMSG_UPDATE_ACCOUNT_DATA                        = 524
SMSG_CLEAR_FAR_SIGHT_IMMEDIATE                  = 525
SMSG_POWERGAINLOG_OBSOLETE                      = 526
SMSG_GM_TEACH                                   = 527
SMSG_GM_CREATE_ITEM_TARGET                      = 528
SMSG_GMTICKET_GETTICKET                         = 529
SMSG_GMTICKET_GETTICKET                         = 530
SMSG_UNLEARN_TALENTS                            = 531
SMSG_GAMEOBJECT_SPAWN_ANIM                      = 532
SMSG_GAMEOBJECT_DESPAWN_ANIM                    = 533
SSG_CORPSE_QUERY                                = 534
SMSG_GMTICKET_DELETETICKET                      = 535
SMSG_GMTICKET_DELETETICKET                      = 536
SMSG_CHAT_WRONG_FACTION                         = 537
SMSG_GMTICKET_SYSTEMSTATUS                      = 538
SMSG_GMTICKET_SYSTEMSTATUS                      = 539
SMSG_SPIRIT_HEALER_ACTIVATE                     = 540
SMSG_SET_STAT_CHEAT                             = 541
SMSG_SET_REST_START                             = 542
SMSG_SKILL_BUY_STEP                             = 543
SMSG_SKILL_BUY_RANK                             = 544
SMSG_XP_CHEAT                                   = 545
SMSG_SPIRIT_HEALER_CONFIRM                      = 546
SMSG_CHARACTER_POINT_CHEAT                      = 547
SMSG_GOSSIP_POI                                 = 548
SMSG_CHAT_IGNORED                               = 549
SMSG_GM_VISION                                  = 550
SMSG_SERVER_COMMAND                             = 551
SMSG_GM_SILENCE                                 = 552
SMSG_GM_REVEALTO                                = 553
SMSG_GM_RESURRECT                               = 554
SMSG_GM_SUMMONMOB                               = 555
SMSG_GM_MOVECORPSE                              = 556
SMSG_GM_FREEZE                                  = 557
SMSG_GM_UBERINVIS                               = 558
SMSG_GM_REQUEST_PLAYER_INFO                     = 559
SMSG_GM_PLAYER_INFO                             = 560
SMSG_GUILD_RANK                                 = 561
SMSG_GUILD_ADD_RANK                             = 562
SMSG_GUILD_DEL_RANK                             = 563
SMSG_GUILD_SET_PUBLIC_NOTE                      = 564
SMSG_GUILD_SET_OFFICER_NOTE                     = 565
SMSG_LOGIN_VERIFY_WORLD                         = 566
SMSG_CLEAR_EXPLORATION                          = 567
SMSG_SEND_MAIL                                  = 568
SMSG_SEND_MAIL_RESULT                           = 569
SMSG_GET_MAIL_LIST                              = 570
SMSG_MAIL_LIST_RESULT                           = 571
SMSG_BATTLEFIELD_LIST                           = 572
SMSG_BATTLEFIELD_LIST                           = 573
SMSG_BATTLEFIELD_JOIN                           = 574
SMSG_BATTLEFIELD_WIN                            = 575
SMSG_BATTLEFIELD_LOSE                           = 576
SMSG_TAXICLEARNODE                              = 577
SMSG_TAXIENABLENODE                             = 578
SMSG_ITEM_TEXT_QUERY                            = 579
SMSG_ITEM_TEXT_QUERY_RESPONSE                   = 580
SMSG_MAIL_TAKE_MONEY                            = 581
SMSG_MAIL_TAKE_ITEM                             = 582
SMSG_MAIL_MARK_AS_READ                          = 583
SMSG_MAIL_RETURN_TO_SENDER                      = 584
SMSG_MAIL_DELETE                                = 585
SMSG_MAIL_CREATE_TEXT_ITEM                      = 586
SMSG_SPELLLOGMISS                               = 587
SMSG_SPELLLOGEXECUTE                            = 588
SMSG_DEBUGAURAPROC                              = 589
SMSG_PERIODICAURALOG                            = 590
SMSG_SPELLDAMAGESHIELD                          = 591
SMSG_SPELLNONMELEEDAMAGELOG                     = 592
SMSG_LEARN_TALENT                               = 593
SMSG_RESURRECT_FAILED                           = 594
-- CMSG_ENABLE_PVP                                = 595 -- OBSOLETE
SMSG_TOGGLE_PVP                                 = 595
SMSG_ZONE_UNDER_ATTACK                          = 596
SSG_AUCTION_HELLO                               = 597
SMSG_AUCTION_SELL_ITEM                          = 598
SMSG_AUCTION_REMOVE_ITEM                        = 599
SMSG_AUCTION_LIST_ITEMS                         = 600
SMSG_AUCTION_LIST_OWNER_ITEMS                   = 601
SMSG_AUCTION_PLACE_BID                          = 602
SMSG_AUCTION_COMMAND_RESULT                     = 603
SMSG_AUCTION_LIST_RESULT                        = 604
SMSG_AUCTION_OWNER_LIST_RESULT                  = 605
SMSG_AUCTION_BIDDER_NOTIFICATION                = 606
SMSG_AUCTION_OWNER_NOTIFICATION                 = 607
SMSG_PROCRESIST                                 = 608
SMSG_STANDSTATE_CHANGE_FAILURE                  = 609
SMSG_DISPEL_FAILED                              = 610
SMSG_SPELLORDAMAGE_IMMUNE                       = 611
SMSG_AUCTION_LIST_BIDDER_ITEMS                  = 612
SMSG_AUCTION_BIDDER_LIST_RESULT                 = 613
SMSG_SET_FLAT_SPELL_MODIFIER                    = 614
SMSG_SET_PCT_SPELL_MODIFIER                     = 615
SMSG_SET_AMMO                                   = 616
SMSG_CORPSE_RECLAIM_DELAY                       = 617
SMSG_SET_ACTIVE_MOVER                           = 618
SMSG_PET_CANCEL_AURA                            = 619
SMSG_PLAYER_AI_CHEAT                            = 620
SMSG_CANCEL_AUTO_REPEAT_SPELL                   = 621
SSG_GM_ACCOUNT_ONLINE                           = 622
SSG_LIST_STABLED_PETS                           = 623
SMSG_STABLE_PET                                 = 624
SMSG_UNSTABLE_PET                               = 625
SMSG_BUY_STABLE_SLOT                            = 626
SMSG_STABLE_RESULT                              = 627
SMSG_STABLE_REVIVE_PET                          = 628
SMSG_STABLE_SWAP_PET                            = 629
SSG_QUEST_PUSH_RESULT                           = 630
SMSG_PLAY_MUSIC                                 = 631
SMSG_PLAY_OBJECT_SOUND                          = 632
SMSG_REQUEST_PET_INFO                           = 633
SMSG_FAR_SIGHT                                  = 634
SMSG_SPELLDISPELLOG                             = 635
SMSG_DAMAGE_CALC_LOG                            = 636
SMSG_ENABLE_DAMAGE_LOG                          = 637
SMSG_GROUP_CHANGE_SUB_GROUP                     = 638
-- SMSG_RAID_MEMBER_STATS                        = 639 -- OBSOLETE
SMSG_REQUEST_PARTY_MEMBER_STATS                 = 639
SMSG_GROUP_SWAP_SUB_GROUP                       = 640
SMSG_RESET_FACTION_CHEAT                        = 641
SMSG_AUTOSTORE_BANK_ITEM                        = 642
SMSG_AUTOBANK_ITEM                              = 643
SSG_QUERY_NEXT_MAIL_TIME                        = 644
SMSG_RECEIVED_MAIL                              = 645
SMSG_RAID_GROUP_ONLY                            = 646
SMSG_SET_DURABILITY_CHEAT                       = 647
SMSG_SET_PVP_RANK_CHEAT                         = 648
SMSG_ADD_PVP_MEDAL_CHEAT                        = 649
SMSG_DEL_PVP_MEDAL_CHEAT                        = 650
SMSG_SET_PVP_TITLE                              = 651
SMSG_PVP_CREDIT                                 = 652
SMSG_AUCTION_REMOVED_NOTIFICATION               = 653
SMSG_GROUP_RAID_CONVERT                         = 654
SMSG_GROUP_ASSISTANT_LEADER                     = 655
SMSG_BUYBACK_ITEM                               = 656
SMSG_SERVER_MESSAGE                             = 657
SMSG_MEETINGSTONE_JOIN                          = 658
SMSG_MEETINGSTONE_LEAVE                         = 659
SMSG_MEETINGSTONE_CHEAT                         = 660
SMSG_MEETINGSTONE_SETQUEUE                      = 661
SMSG_MEETINGSTONE_INFO                          = 662
SMSG_MEETINGSTONE_COMPLETE                      = 663
SMSG_MEETINGSTONE_IN_PROGRESS                   = 664
SMSG_MEETINGSTONE_MEMBER_ADDED                  = 665
SMSG_GMTICKETSYSTEM_TOGGLE                      = 666
SMSG_CANCEL_GROWTH_AURA                         = 667
SMSG_CANCEL_AUTO_REPEAT                         = 668
SMSG_STANDSTATE_CHANGE_ACK                      = 669
SMSG_LOOT_ALL_PASSED                            = 670
SMSG_LOOT_ROLL_WON                              = 671
SMSG_LOOT_ROLL                                  = 672
SMSG_LOOT_START_ROLL                            = 673
SMSG_LOOT_ROLL                                  = 674
SMSG_LOOT_MASTER_GIVE                           = 675
SMSG_LOOT_MASTER_LIST                           = 676
SMSG_SET_FORCED_REACTIONS                       = 677
SMSG_SPELL_FAILED_OTHER                         = 678
SMSG_GAMEOBJECT_RESET_STATE                     = 679
SMSG_REPAIR_ITEM                                = 680
SMSG_CHAT_PLAYER_NOT_FOUND                      = 681
SSG_TALENT_WIPE_CONFIRM                         = 682
SMSG_SUMMON_REQUEST                             = 683
SMSG_SUMMON_RESPONSE                            = 684
SSG_MOVE_TOGGLE_GRAVITY_CHEAT                   = 685
SMSG_MONSTER_MOVE_TRANSPORT                     = 686
SMSG_PET_BROKEN                                 = 687
SSG_MOVE_FEATHER_FALL                           = 688
SSG_MOVE_WATER_WALK                             = 689
SMSG_SERVER_BROADCAST                           = 690
SMSG_SELF_RES                                   = 691
SMSG_FEIGN_DEATH_RESISTED                       = 692
SMSG_RUN_SCRIPT                                 = 693
SMSG_SCRIPT_MESSAGE                             = 694
SMSG_DUEL_COUNTDOWN                             = 695
SMSG_AREA_TRIGGER_MESSAGE                       = 696
SMSG_TOGGLE_HELM                                = 697
SMSG_TOGGLE_CLOAK                               = 698
-- SMSG_SPELL_REFLECTED                            = 699 -- OBSOLETE
SMSG_MEETINGSTONE_JOINFAILED                    = 699
SMSG_PLAYER_SKINNED                             = 700
SMSG_DURABILITY_DAMAGE_DEATH                    = 701
SMSG_SET_EXPLORATION                            = 702
SMSG_SET_ACTIONBAR_TOGGLES                      = 703
UMSG_DELETE_GUILD_CHARTER                       = 704
SSG_PETITION_RENAME                             = 705
SMSG_INIT_WORLD_STATES                          = 706
SMSG_UPDATE_WORLD_STATE                         = 707
SMSG_ITEM_NAME_QUERY                            = 708
SMSG_ITEM_NAME_QUERY_RESPONSE                   = 709
SMSG_PET_ACTION_FEEDBACK                        = 710
SMSG_CHAR_RENAME                                = 711
SMSG_CHAR_RENAME                                = 712
SMSG_MOVE_SPLINE_DONE                           = 713
SMSG_MOVE_FALL_RESET                            = 714
SMSG_INSTANCE_SAVE_CREATED                      = 715
SMSG_RAID_INSTANCE_INFO                         = 716
SMSG_REQUEST_RAID_INFO                          = 717
SMSG_MOVE_TIME_SKIPPED                          = 718
SMSG_MOVE_FEATHER_FALL_ACK                      = 719
SMSG_MOVE_WATER_WALK_ACK                        = 720
SMSG_MOVE_NOT_ACTIVE_MOVER                      = 721
SMSG_PLAY_SOUND                                 = 722
SMSG_BATTLEFIELD_STATUS                         = 723
SMSG_BATTLEFIELD_STATUS                         = 724
SMSG_BATTLEFIELD_PORT                           = 725
SSG_INSPECT_HONOR_STATS                         = 726
SMSG_BATTLEMASTER_HELLO                         = 727
SMSG_MOVE_START_SWIM_CHEAT                      = 728
SMSG_MOVE_STOP_SWIM_CHEAT                       = 729
SMSG_FORCE_WALK_SPEED_CHANGE                    = 730
SMSG_FORCE_WALK_SPEED_CHANGE_ACK                = 731
SMSG_FORCE_SWIM_BACK_SPEED_CHANGE               = 732
SMSG_FORCE_SWIM_BACK_SPEED_CHANGE_ACK           = 733
SMSG_FORCE_TURN_RATE_CHANGE                     = 734
SMSG_FORCE_TURN_RATE_CHANGE_ACK                 = 735
SSG_PVP_LOG_DATA                                = 736
SMSG_LEAVE_BATTLEFIELD                          = 737
SMSG_AREA_SPIRIT_HEALER_QUERY                   = 738
SMSG_AREA_SPIRIT_HEALER_QUEUE                   = 739
SMSG_AREA_SPIRIT_HEALER_TIME                    = 740
SMSG_GM_UNTEACH                                 = 739
SMSG_HARDWARE_SURVEY_REQUEST                    = 740
SMSG_HARDWARE_SURVEY_RESULTS                    = 741
SMSG_WARDEN_DATA                                = 742
SMSG_WARDEN_DATA                                = 743
SMSG_GROUP_JOINED_BATTLEGROUND                  = 744
SSG_BATTLEGROUND_PLAYER_POSITIONS               = 745
-- MSG_BINDPOINT_CONFIRM = SMSG_BINDER_CONFIRM
SMSG_PET_STOP_ATTACK                            = 746
SMSG_BINDER_CONFIRM                             = 747
SMSG_BATTLEGROUND_PLAYER_JOINED                 = 748
SMSG_BATTLEGROUND_PLAYER_LEFT                   = 749
SMSG_BATTLEMASTER_JOIN                          = 750
SMSG_ADDON_INFO                                 = 753-2
SMSG_PET_UNLEARN                                = 754-2
SMSG_PET_UNLEARN_CONFIRM                        = 755-2
SMSG_PARTY_MEMBER_STATS_FULL                    = 756-2
SMSG_PET_SPELL_AUTOCAST                         = 757-2
SMSG_WEATHER                                    = 758-2
SMSG_PLAY_TIME_WARNING                          = 759-2
SMSG_MINIGAME_SETUP                             = 760-2
SMSG_MINIGAME_STATE                             = 761-2
SMSG_MINIGAME_MOVE                              = 762-2
SMSG_MINIGAME_MOVE_FAILED                       = 763-2
SMSG_GUILD_CHANGEINFO                           = 764
SMSG_UNKNOWN_INFO                               = 766
SMSG_ACTIVATETAXI_FAR                           = 786
-- griphon related = 786
SMSG_FIELD_WATCHED_FACTION_INACTIVE             = 791
SMSG_FIELD_WATCHED_FACTION_SHOW_BAR             = 792
-- Unofficial opcodes:
SMSG_COMPRESSED_MOVE                            = 763
SSG_RAID_ICON_TARGET                            = 801
SMSG_OUTDOORPVP_NOTIFY                          = 827
-- };

-- NPC Flags
-- NPCFlags = {
UNIT_NPC_FLAG_NONE              = 0
UNIT_NPC_FLAG_GOSSIP            = 1
UNIT_NPC_FLAG_QUESTGIVER        = 2
UNIT_NPC_FLAG_VENDOR            = 4
UNIT_NPC_FLAG_TAXIVENDOR        = 8
UNIT_NPC_FLAG_TRAINER           = 16
UNIT_NPC_FLAG_SPIRITHEALER      = 32
UNIT_NPC_FLAG_GUARD             = 64                   -- UQ1: ???  We can use as guard flag?
UNIT_NPC_FLAG_INNKEEPER         = 128
UNIT_NPC_FLAG_BANKER            = 256
UNIT_NPC_FLAG_PETITIONER        = 512
UNIT_NPC_FLAG_TABARDVENDOR      = 1024
UNIT_NPC_FLAG_BATTLEFIELDPERSON = 2048
UNIT_NPC_FLAG_AUCTIONEER        = 4096
UNIT_NPC_FLAG_STABLE            = 8192
UNIT_NPC_FLAG_ARMORER           = 16384
-- }

-- Some pseudo-defines
-- TradeSkill = {
TRADESKILL_ALCHEMY = 1
TRADESKILL_BLACKSMITHING = 2
TRADESKILL_ALCHEMY =              1
TRADESKILL_BLACKSMITHING =        2
TRADESKILL_COOKING =              3
TRADESKILL_ENCHANTING =           4
TRADESKILL_ENGINEERING =          5
TRADESKILL_FIRSTAID =             6
TRADESKILL_HERBALISM =            7
TRADESKILL_LEATHERWORKING =       8
TRADESKILL_POISONS =              9
TRADESKILL_TAILORING =            10
TRADESKILL_MINING = 		    11
TRADESKILL_FISHING = 		    12
TRADESKILL_SKINNING = 		    13
-- };

-- TradeSkill_Level = {
TRADESKILL_LEVEL_NONE =           0
TRADESKILL_LEVEL_APPRENTICE =     1
TRADESKILL_LEVEL_JOURNEYMAN =     2
TRADESKILL_LEVEL_EXPERT =         3
TRADESKILL_LEVEL_ARTISAN =        4
-- };
-- Gossip defines
-- Gossip_Action = {
GOSSIP_ACTION_TRADE =   1
GOSSIP_ACTION_TRAIN =   2
GOSSIP_ACTION_TAXI =    3
GOSSIP_ACTION_GUILD =   4
GOSSIP_ACTION_BATTLE =  5
GOSSIP_ACTION_BANK =    6
GOSSIP_ACTION_INN =     7
GOSSIP_ACTION_HEAL =    8
GOSSIP_ACTION_TABARD =  9
GOSSIP_ACTION_AUCTION = 10
GOSSIP_ACTION_INN_INFO= 11
GOSSIP_ACTION_UNLEARN = 12
GOSSIP_ACTION_INFO_DEF= 1000
-- }

-- Gossip_Sender = {
GOSSIP_SENDER_MAIN = 		1
GOSSIP_SENDER_INN_INFO = 	2
GOSSIP_SENDER_INFO = 		3
GOSSIP_SENDER_SEC_PROFTRAIN = 4
GOSSIP_SENDER_SEC_CLASSTRAIN= 5
GOSSIP_SENDER_SEC_BATTLEINFO= 6
-- };

-- Gossip Option
-- Gossip_Option = {
GOSSIP_OPTION_NONE              = 0                    -- UNIT_NPC_FLAG_NONE              = 0
GOSSIP_OPTION_GOSSIP            = 1                    -- UNIT_NPC_FLAG_GOSSIP            = 1
GOSSIP_OPTION_QUESTGIVER        = 2                    -- UNIT_NPC_FLAG_QUESTGIVER        = 2
GOSSIP_OPTION_VENDOR            = 3                    -- UNIT_NPC_FLAG_VENDOR            = 4
GOSSIP_OPTION_TAXIVENDOR        = 4                    -- UNIT_NPC_FLAG_TAXIVENDOR        = 8
GOSSIP_OPTION_TRAINER           = 5                    -- UNIT_NPC_FLAG_TRAINER           = 16
GOSSIP_OPTION_SPIRITHEALER      = 6                    -- UNIT_NPC_FLAG_SPIRITHEALER      = 32
GOSSIP_OPTION_GUARD             = 7                    -- UNIT_NPC_FLAG_GUARD             = 64
GOSSIP_OPTION_INNKEEPER         = 8                    -- UNIT_NPC_FLAG_INNKEEPER         = 128
GOSSIP_OPTION_BANKER            = 9                    -- UNIT_NPC_FLAG_BANKER            = 256
GOSSIP_OPTION_PETITIONER        = 10                   -- UNIT_NPC_FLAG_PETITIONER        = 512
GOSSIP_OPTION_TABARDVENDOR      = 11                   -- UNIT_NPC_FLAG_TABARDVENDOR      = 1024
GOSSIP_OPTION_BATTLEFIELD       = 12                   -- UNIT_NPC_FLAG_BATTLEFIELDPERSON = 2048
GOSSIP_OPTION_AUCTIONEER        = 13                   -- UNIT_NPC_FLAG_AUCTIONEER        = 4096
GOSSIP_OPTION_STABLEPET         = 14                   -- UNIT_NPC_FLAG_STABLE            = 8192
GOSSIP_OPTION_ARMORER           = 15                   -- UNIT_NPC_FLAG_ARMORER           = 16384
GOSSIP_OPTION_UNLEARNTALENTS    = 16                   -- UNIT_NPC_FLAG_TRAINER (bonus option for GOSSIP_OPTION_TRAINER)
-- };

-- Gossip Guard
-- Gossip_Guard = {
GOSSIP_GUARD_BANK               = 32
GOSSIP_GUARD_RIDE               = 33
GOSSIP_GUARD_GUILD              = 34
GOSSIP_GUARD_INN                = 35
GOSSIP_GUARD_MAIL               = 36
GOSSIP_GUARD_AUCTION            = 37
GOSSIP_GUARD_WEAPON             = 38
GOSSIP_GUARD_STABLE             = 39
GOSSIP_GUARD_BATTLE             = 40
GOSSIP_GUARD_SPELLTRAINER       = 41
GOSSIP_GUARD_SKILLTRAINER       = 42
-- };

-- Gossip Guard Spell
-- Gossip_Guard_Spell = {
GOSSIP_GUARD_SPELL_WARRIOR      = 64
GOSSIP_GUARD_SPELL_PALADIN      = 65
GOSSIP_GUARD_SPELL_HUNTER       = 66
GOSSIP_GUARD_SPELL_ROGUE        = 67
GOSSIP_GUARD_SPELL_PRIEST       = 68
GOSSIP_GUARD_SPELL_UNKNOWN1     = 69
GOSSIP_GUARD_SPELL_SHAMAN       = 70
GOSSIP_GUARD_SPELL_MAGE         = 71
GOSSIP_GUARD_SPELL_WARLOCK      = 72
GOSSIP_GUARD_SPELL_UNKNOWN2     = 73
GOSSIP_GUARD_SPELL_DRUID        = 74
-- };

-- Gossip Guard Skill
-- Gossip_Guard_Skill = {
GOSSIP_GUARD_SKILL_ALCHEMY      = 80
GOSSIP_GUARD_SKILL_BLACKSMITH   = 81
GOSSIP_GUARD_SKILL_COOKING      = 82
GOSSIP_GUARD_SKILL_ENCHANT      = 83
GOSSIP_GUARD_SKILL_FIRSTAID     = 84
GOSSIP_GUARD_SKILL_FISHING      = 85
GOSSIP_GUARD_SKILL_HERBALISM    = 86
GOSSIP_GUARD_SKILL_LEATHER      = 87
GOSSIP_GUARD_SKILL_MINING       = 88
GOSSIP_GUARD_SKILL_SKINNING     = 89
GOSSIP_GUARD_SKILL_TAILORING    = 90
GOSSIP_GUARD_SKILL_ENGINERING   = 91
-- };

DEFAULT_GOSSIP_MESSAGE = 16777215 -- 0xffffff

-- emotes

EMOTE_ONESHOT_NONE                  = 0
EMOTE_ONESHOT_TALK                  = 1
EMOTE_ONESHOT_BOW                   = 2
EMOTE_ONESHOT_WAVE                  = 3
EMOTE_ONESHOT_CHEER                 = 4
EMOTE_ONESHOT_EXCLAMATION           = 5
EMOTE_ONESHOT_QUESTION              = 6
EMOTE_ONESHOT_EAT                   = 7
EMOTE_STATE_DANCE                   = 10
EMOTE_ONESHOT_LAUGH                 = 11
EMOTE_STATE_SLEEP                   = 12
EMOTE_STATE_SIT                     = 13
EMOTE_ONESHOT_RUDE                  = 14
EMOTE_ONESHOT_ROAR                  = 15
EMOTE_ONESHOT_KNEEL                 = 16
EMOTE_ONESHOT_KISS                  = 17
EMOTE_ONESHOT_CRY                   = 18
EMOTE_ONESHOT_CHICKEN               = 19
EMOTE_ONESHOT_BEG                   = 20
EMOTE_ONESHOT_APPLAUD               = 21
EMOTE_ONESHOT_SHOUT                 = 22
EMOTE_ONESHOT_FLEX                  = 23
EMOTE_ONESHOT_SHY                   = 24
EMOTE_ONESHOT_POINT                 = 25
EMOTE_STATE_STAND                   = 26
EMOTE_STATE_READYUNARMED            = 27
EMOTE_STATE_WORK                    = 28
EMOTE_STATE_POINT                   = 29
EMOTE_STATE_NONE                    = 30
EMOTE_ONESHOT_WOUND                 = 33
EMOTE_ONESHOT_WOUNDCRITICAL         = 34
EMOTE_ONESHOT_ATTACKUNARMED         = 35
EMOTE_ONESHOT_ATTACK1H              = 36
EMOTE_ONESHOT_ATTACK2HTIGHT         = 37
EMOTE_ONESHOT_ATTACK2HLOOSE         = 38
EMOTE_ONESHOT_PARRYUNARMED          = 39
EMOTE_ONESHOT_PARRYSHIELD           = 43
EMOTE_ONESHOT_READYUNARMED          = 44
EMOTE_ONESHOT_READY1H               = 45
EMOTE_ONESHOT_READYBOW              = 48
EMOTE_ONESHOT_SPELLPRECAST          = 50
EMOTE_ONESHOT_SPELLCAST             = 51
EMOTE_ONESHOT_BATTLEROAR            = 53
EMOTE_ONESHOT_SPECIALATTACK1H       = 54
EMOTE_ONESHOT_KICK                  = 60
EMOTE_ONESHOT_ATTACKTHROWN          = 61
EMOTE_STATE_STUN                    = 64
EMOTE_STATE_DEAD                    = 65
EMOTE_ONESHOT_SALUTE                = 66
EMOTE_STATE_KNEEL                   = 68
EMOTE_STATE_USESTANDING             = 69
EMOTE_ONESHOT_WAVE_NOSHEATHE        = 70
EMOTE_ONESHOT_CHEER_NOSHEATHE       = 71
EMOTE_ONESHOT_EAT_NOSHEATHE         = 92
EMOTE_STATE_STUN_NOSHEATHE          = 93
EMOTE_ONESHOT_DANCE                 = 94
EMOTE_ONESHOT_SALUTE_NOSHEATH       = 113
EMOTE_STATE_USESTANDING_NOSHEATHE   = 133
EMOTE_ONESHOT_LAUGH_NOSHEATHE       = 153
EMOTE_STATE_WORK_NOSHEATHE          = 173
EMOTE_STATE_SPELLPRECAST            = 193
EMOTE_ONESHOT_READYRIFLE            = 213
EMOTE_STATE_READYRIFLE              = 214
EMOTE_STATE_WORK_NOSHEATHE_MINING   = 233
EMOTE_STATE_WORK_NOSHEATHE_CHOPWOOD = 234
EMOTE_zzOLDONESHOT_LIFTOFF          = 253
EMOTE_ONESHOT_LIFTOFF               = 254
EMOTE_ONESHOT_YES                   = 273
EMOTE_ONESHOT_NO                    = 274
EMOTE_ONESHOT_TRAIN                 = 275
EMOTE_ONESHOT_LAND                  = 293
EMOTE_STATE_READY1H                 = 333
EMOTE_STATE_AT_EASE                 = 313
EMOTE_STATE_SPELLKNEELSTART         = 353
EMOTE_STATE_SUBMERGED               = 373
EMOTE_ONESHOT_SUBMERGE              = 374

-- The return values
RETURN_NOK = -1
RETURN_OK = 0
printf("LuaScript: Defines loaded!\n")
